package com.u2b.business.delete;

import java.util.HashMap;

import orm.AddProxy;
import orm.UpdateProxy;

public class DeleteDaoImpl {

	private final UpdateProxy updateProxy;
	public DeleteDaoImpl(){
		
		updateProxy=new UpdateProxy();
		
	}
	
	public  int deleteStaus(HashMap<String,Object> value){
		int flag=0;
		String sid=value.get("sid").toString();
		String sql = "delete from status_db where sid="+sid;
		flag=updateProxy.update(sql);
		return flag;
		
		
		
	}
	
	public  int deleteActivity(HashMap<String,Object> value){
		int flag=0;
		String aid=value.get("aid").toString();
		String sql = "delete from activity_db where aid="+aid;
		flag=updateProxy.update(sql);
		return flag;
		
		
		
	}
	
	
	
	
}
